import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i = 0; i < 31; i++) {

        }

       /* String str = "abc def";
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 3; i++) {
            String s = scanner.nextLine();*/



       /* while(n>0){
            int ret = n%10;
            System.out.print(ret+",");
            n /= 10;
        }*/

        /*Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i = 1; i <= n; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i+" = "+i*j+" ");
            }
            System.out.print('\n');

        }*/

       /* for (int i = 100; i < n; i++) {
            int j = i;
            int sum = 0;
            while(j>0){
               int ret = (j%10)*(j%10)*(j%10);
               sum += ret;
               j /= 10;
            }
            if(sum == i){
                System.out.println(i);
            }
        }*/
        /*int ret = 0;
        int sum = 0;
        for (int i = 1; i <=100 ; i++) {
            if(i%2==0){
                ret = -1/i;
            }else{
                ret = 1/i;
            }
            sum += ret;
        }
        System.out.println(sum);*/

      /* int n = 10;
       int count = 0;
        for (int i = 0; i <31 ; i++) {
            if((n&1)==1){
                count++;
            }
            n >>= 1;
        }
        System.out.println(count);*/


       /* int i = 1;
        while(i<=100){
            if(i%3!=0){
                i++;
                continue;
            }else if(i%5!=0){
                i++;
                continue;
            }else{
                System.out.println(i);
                i++;
            }
        }*/
    }
    public static void main3(String[] args) {
        //可以改成一个循环
            int n = 1;
            int sum = 0;
            while(n<=5) {
                int i = 1;
                int ret = 1;
                while (i <= n) {
                    ret *= i;
                    i++;
                }
                sum += ret;
                n++;
            }
            System.out.println(sum);

    }

    public static void main2(String[] args) {
        //计算和
        int i = 1;
        int sum = 0;
        while(i<=100){
            sum += i;
            i++;
        }
        System.out.println(sum);
        //计算奇数和
        int i1 = 1;
        int sum1 = 0;
        while(i1<=100){
            sum1 += i1;
            i1 += 2;
        }
        System.out.println(sum1);
        //计算偶数和
        int i2 = 2;
        int sum2 = 0;
        while(i2<=100){
            sum2 += i2;
            i2 += 2;
        }
        System.out.println(sum2);

    }
}
